<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>提示框</title>
    <link rel="stylesheet" href="./style.css">
</head>

<body style="text-align:center;">
    <div class="tooltip">鼠标悬浮有惊喜
        <span class="tooltiptext">我是惊喜</span>
    </div>
</body>

</html>